home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 September / macformat-004.iso / Shareware City / Games / Jotto ][ 1.1.source Folder / Jotto ][ ƒ / Shell ƒ / sounds.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-06  |  1.4 KB  |  51 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        sounds.h
  4.  
  5. Purpose:    This is the header file for sounds.c
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program in a file named "GNU General Public License".
  19. If not, write to the Free Software Foundation, 675 Mass Ave,
  20. Cambridge, MA 02139, USA.
  21.  
  22. \**********************************************************************/
  23.  
  24. #include <Sound.h>
  25.  
  26. #define NUM_SOUNDS        10
  27.  
  28. enum
  29. {
  30.     sound_keyclick = 1000,
  31.     sound_playword_good,
  32.     sound_badword,
  33.     sound_wingame,
  34.     sound_losegame,
  35.     sound_virgin,
  36.     sound_on,
  37.     sound_aboutMSG,
  38.     sound_fluff,
  39.     sound_bluffing
  40. };
  41.  
  42. extern    SndChannelPtr        myChannel;
  43. extern    Handle                MySounds[NUM_SOUNDS];
  44. extern    Boolean                gSoundToggle;
  45. extern    Boolean                gSoundAvailable;
  46. extern    Boolean                gSoundIsFinishedPlaying;
  47.  
  48. void InitTheSounds(void);
  49. void DoSound(short whichSound, Boolean async);
  50. void CloseTheSoundChannel(void);
  51.